package com.shopping_back.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("groupbuy_item")
public class GroupbuyItem {
    @TableId(value = "sku_id", type = IdType.INPUT)   // 主键 = skuId，外部传入
    private Long skuId;
    private Long activityId;
    private BigDecimal groupPrice;
    private Integer    requiredCount;
    private Integer    durationMinutes;

    private LocalDateTime createTime;
}
